import request from '@/utils/request'

// 查询订购教程名单列表
export function listStu_book(query) {
  return request({
    url: '/uniquefees/stu_book/list',
    method: 'get',
    params: query
  })
}

// 查询订购教程名单列表
export function deptStuBook(query) {
  return request({
    url: '/uniquefees/stu_book/items',
    method: 'get',
    params: query
  })
}

// 查询缴费学生
export function getPayStu(payId) {
  return request({
    url: '/payment/pay-list/' + payId,
    method: 'get',
  })
}

export function getPayStuV2(payId) {
  return request({
    url: '/payment/pay-list/' + payId + '/v2',
    method: 'get',
  })
}

// 查询订购教程名单详细
export function getStu_book(csId) {
  return request({
    url: '/uniquefees/stu_book/' + csId,
    method: 'get'
  })
}

// 新增订购教程名单
export function addStu_book(data) {
  return request({
    url: '/uniquefees/stu_book',
    method: 'post',
    data: data
  })
}

// 修改订购教程名单
export function updateStu_book(data) {
  return request({
    url: '/uniquefees/stu_book/put',
    method: 'post',
    data: data
  })
}

// 删除订购教程名单
export function delStu_book(csId) {
  return request({
    url: '/uniquefees/stu_book/' + csId + '/delete',
    method: 'post'
  })
}

// 发布订购名单 --个性化
export function releaseStu_book(data) {
  return request({
    url: '/uniquefees/stu_book/release',
    method: 'post',
    data: data
  })
}

// 发布订购名单  --专项
export function releaseStuList(data) {
  return request({
    url: '/uniquefees/stu_book/release3',
    method: 'post',
    data: data
  })
}

// 发布订购名单  --专项
export function releaseStuListOne(data) {
  return request({
    url: '/uniquefees/stu_book/release/v4',
    method: 'post',
    data: data
  })
}


// 撤回发布订购名单
export function revokeReleaseStu_book(data) {
  return request({
    url: '/uniquefees/stu_book/revoke/release',
    method: 'post',
    data: data
  })
}

// 撤回发布订购名单
export function revokeReleaseOne(data) {
  return request({
    url: '/uniquefees/stu_book/revoke/release/v2',
    method: 'post',
    data: data
  })
}
